package com.ruoyi.fun.service;

import java.util.List;
import com.ruoyi.fun.domain.EcOrderItem;

/**
 * 订单商品Service接口
 * 
 * @author ruoyi
 * @date 2025-08-06
 */
public interface IEcOrderItemService 
{
    /**
     * 查询订单商品
     * 
     * @param orderItemId 订单商品主键
     * @return 订单商品
     */
    public EcOrderItem selectEcOrderItemByOrderItemId(Long orderItemId);

    /**
     * 查询订单商品列表
     * 
     * @param ecOrderItem 订单商品
     * @return 订单商品集合
     */
    public List<EcOrderItem> selectEcOrderItemList(EcOrderItem ecOrderItem);

    /**
     * 新增订单商品
     * 
     * @param ecOrderItem 订单商品
     * @return 结果
     */
    public int insertEcOrderItem(EcOrderItem ecOrderItem);

    /**
     * 修改订单商品
     * 
     * @param ecOrderItem 订单商品
     * @return 结果
     */
    public int updateEcOrderItem(EcOrderItem ecOrderItem);

    /**
     * 批量删除订单商品
     * 
     * @param orderItemIds 需要删除的订单商品主键集合
     * @return 结果
     */
    public int deleteEcOrderItemByOrderItemIds(Long[] orderItemIds);

    /**
     * 删除订单商品信息
     * 
     * @param orderItemId 订单商品主键
     * @return 结果
     */
    public int deleteEcOrderItemByOrderItemId(Long orderItemId);

    /**
     * 根据orderItemId和组织ID查询OrderItem
     * 
     * @param orderItemId OrderItem主键
     * @param orgId 组织ID
     * @return OrderItem
     */
    public EcOrderItem selectEcOrderItemByOrderItemIdAndOrgId(Long orderItemId, Long orgId);

    /**
     * 根据组织ID查询OrderItem列表
     * 
     * @param ecorderitem OrderItem
     * @param orgId 组织ID
     * @return OrderItem集合
     */
    public List<EcOrderItem> selectEcOrderItemListByOrgId(EcOrderItem ecorderitem, Long orgId);
}
